﻿#region Opis pliku
//-----------------------------------------------------------------------------
// MenuBackground.cs
// Autor: Jan Czarnowski
// 22.10.2012
//-----------------------------------------------------------------------------
#endregion

#region Using...

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using System.Collections.Generic;
using System;

#endregion

namespace pogra
{
    /// <summary>
    /// Klasa reprezentująca animowane tło w menu głównym
    /// </summary>
    class MenuBackground : GameScreen
    {
        #region pola

        ContentManager content;

        #endregion

        #region inicjalizacja

        public override void LoadContent()
        {
            content = new ContentManager(ScreenManager.Game.Services, "Content");
        }

        #endregion

        #region metody draw i update

        public override void Draw(GameTime gameTime)
        {
            ScreenManager.GraphicsDevice.Clear(Color.Black);//Color.DarkViolet);//new Color(0,0,102));
            ExtendedSpriteBatch exSpriteBatch = ScreenManager.ExtendedSpriteBatch;


            exSpriteBatch.DrawString(ScreenManager.Font, "# Jan Czarnowski, Jan Fras", new Vector2(3, 3), Color.Gray);
        }

        public override void Update(GameTime gameTime)
        {
            Rectangle viewport = ScreenManager.Game.GraphicsDevice.Viewport.Bounds;

        }

        #endregion

        #region metody publiczne

        public override void HandleInput(InputState input, bool otherScreenHasFocus, ref bool eventHandled)
        {

            if (eventHandled)
                return;
        }
        #endregion
    }
}

